package CATALOGMANAGER;

public class Attribute {

    public String attributeName;
    public CATALOGMANAGER.FieldType type;
    public boolean isUnique;

    public Attribute(String attributeName, CATALOGMANAGER.NumType type, int length, boolean isUnique) {
        this.attributeName = attributeName;
        this.type = new CATALOGMANAGER.FieldType(type, length);
        this.isUnique = isUnique;
    }

    public Attribute(String attributeName, CATALOGMANAGER.NumType type, boolean isUnique) {
        this.attributeName = attributeName;
        this.type = new CATALOGMANAGER.FieldType(type);
        this.isUnique = isUnique;
    }

}